﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;

public partial class Default : System.Web.UI.Page    
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<EbookDetail> lstBooks = EbookDetail.GetAllEBooks();
        EBookList1.DataSource = lstBooks;
        EBookList1.DataBind();
        //EBookList1.ColumnCount = 1;
        ltCount.Text = lstBooks.Count.ToString();
    }
}
